<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>
			萌宠添加
		</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link href="http://ueditor.baidu.com/umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
		<link rel="stylesheet" href="./css/x-admin.css" media="all">


		<!--百度编辑器-->
		<script src="http://ueditor.baidu.com/umeditor/umeditor.config.js"></script>
		<script src="http://ueditor.baidu.com/umeditor/umeditor.min.js"></script>
		<script src="http://ueditor.baidu.com/umeditor/lang/zh-cn/zh-cn.js"></script>
	</head>

	<body>
		<div class="x-nav">
			<span class="layui-breadcrumb">
              <a><cite>首页</cite></a>
              <a><cite>萌宠管理</cite></a>
              <a><cite>添加萌宠</cite></a>
            </span>
			<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
		</div>
		<div class="x-body">
			<form class="layui-form layui-form-pane" action="upload.do" method="post" enctype="multipart/form-data" id="add">
				<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
					<ul class="layui-tab-title">
						<li class="layui-this">基本信息</li>
					</ul>

					<div class="layui-tab-content">
						<div class="layui-tab-item layui-show">
							<!--<form class="layui-form layui-form-pane" action="" id="add">-->
							<input type="hidden" name="id">
						<div class="layui-form-item">
							<label class="layui-form-label"> <span class='x-red'>*</span>萌宠性别
							</label>
							<div class="layui-input-block">
								<select name="sex" id="sex">
									<option value="公">---请选择萌宠性别---</option>
									<option value="公">公</option>
									<option value="母">母</option>
								</select>
							</div>
						</div>
						<div class="layui-form-item">
								<label class="layui-form-label">
                            <span class='x-red'>*</span>萌宠类别
                        </label>
								<div class="layui-input-block">
									<select name="classes" id="classes">
										<option value="其他">---请选择萌宠类别---</option>
										<option value="猫">猫</option>
										<option value="狗">狗</option>
										<option value="龟">龟</option>
										<option value="兔">兔</option>
										<option value="其他">其他</option>
									</select>
								</div>
							</div>
							

						
						<div class="layui-form-item">
								<label class="layui-form-label">
                            <span class='x-red'>*</span>标题
                        </label>
								<div class="layui-input-block">
									<input type="text" name="title" autocomplete="off"  placeholder="请输入标题" class="layui-input">
								</div>
						</div>
								<input type="hidden" name="sale" value="未售出">
								<input type="hidden" name="status" value="未发货">
														<div class="layui-form-item">
								<label class="layui-form-label">
                            <span class='x-red'>*</span>年龄
                        </label>
								<div class="layui-input-block">
									<input type="number" name="age" autocomplete="off" value="" placeholder="该输入萌宠年龄" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">
                            <span class='x-red'>*</span>尺寸
                        </label>
								<div class="layui-input-block">
									<input type="text" name="size" autocomplete="off" value="" placeholder="该输入萌宠尺寸" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">
                            <span class='x-red'>*</span>价格
                        </label>
								<div class="layui-input-block">
									<input type="text" name="price" autocomplete="off" value="" placeholder="该输入萌宠价格" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">
                            <span class='x-red'>*</span>颜色
                        </label>
								<div class="layui-input-block">
									<input type="text" name="color" autocomplete="off" value="" placeholder="该输入萌宠颜色" class="layui-input">
								</div>
							</div>
														<div class="layui-form-item">
								<label for="link" class="layui-form-label">
                            <span class="x-red">*</span>萌宠缩略图
                        </label>
								<div class="layui-input-inline">
									<div class="site-demo-upbar">
										<div class=" layui-upload-button" style="border:#FFFFFF ;">
											&emsp;&emsp;
											<button type="button" class="layui-btn" id="test1">
                                        <i class="layui-icon">&#xe67c;</i>上传图片1
                                    </button>
											<input class="layui-upload" type="file" accept="undefined" id="previewImg" name="pics1">
										</div>

									</div>
								</div>
								<div class="layui-input-inline">
									<div class="site-demo-upbar">
										<div class=" layui-upload-button" style="border:#FFFFFF ;">
											&emsp;&emsp;
											<button type="button" class="layui-btn" id="test1">
                                        <i class="layui-icon">&#xe67c;</i>上传图片2
                                    </button>
											<input class="layui-upload" type="file" accept="undefined" id="previewImg" name="pics2">
										</div>

									</div>
								</div>
								<div class="layui-input-inline">
									<div class="site-demo-upbar">
										<div class=" layui-upload-button" style="border:#FFFFFF ;">
											&emsp;&emsp;
											<button type="button" class="layui-btn" id="test1">
                                        <i class="layui-icon">&#xe67c;</i>上传图片3
                                    </button>
											<input class="layui-upload" type="file" accept="undefined" id="previewImg" name="pics3">
										</div>

									</div>
								</div>
								<div class="layui-input-inline">
									<div class="site-demo-upbar">
										<div class=" layui-upload-button" style="border:#FFFFFF ;">
											&emsp;&emsp;
											<button type="button" class="layui-btn" id="test1">
                                        <i class="layui-icon">&#xe67c;</i>上传图片4
                                    </button>
											<input class="layui-upload" type="file" accept="undefined" id="previewImg" name="pics4">
										</div>

									</div>
								</div>
								<div class="layui-input-inline">
									<div class="site-demo-upbar">
										<div class=" layui-upload-button" style="border:#FFFFFF ;">
											&emsp;&emsp;
											<button type="button" class="layui-btn" id="test1">
                                        <i class="layui-icon">&#xe67c;</i>上传图片5
                                    </button>
											<input class="layui-upload" type="file" accept="undefined" id="previewImg" name="pics5">
										</div>

									</div>
								</div>
								
								
							</div>

							<div class="layui-form-item">
								<input type="submit" value="保存" class="layui-btn" >
							</div>
							<!--</form>-->
						</div>
					</div>
			</form>
			</div>
		</div>
		<script src="./lib/layui/layui.js" charset="utf-8"></script>
		<script src="./js/x-layui.js" charset="utf-8"></script>
		<script type="text/javascript">
			//实例化编辑器
			//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
			UE.getEditor('content', {
				initialFrameWidth: 600,
				initialFrameHeight: 400,
			});
		</script>
		<script>
			layui.use(['element', 'layer', 'form'], function() {
				$ = layui.jquery; //jquery
				lement = layui.element(); //面包导航
				layer = layui.layer; //弹出层
				form = layui.form();

			})
		</script>
		<!--栏目缩略图上传-->

	</body>

</html>